package web

import (
	"github.com/gin-gonic/gin"
)

func RegisterRoutes() *gin.Engine {
	r := gin.Default()
	regiserUserRoutes(r)
	return r
}
func regiserUserRoutes(r *gin.Engine) {
	u := &UserHandler{}
	r.POST("/users/signup", u.Signup)
	r.POST("/users/login", u.Login)
	r.POST("/users/edit", u.Edit)
	r.GET("/users/profile", u.Profile)
	r.POST("/users/login_sms/code/send", u.LoginSMSCode)
	r.POST("/users/login_sms", u.LoginSMS)
}
